package greentycoon.ville;

import java.util.Random;

public class Environement {

	/*Variables globales*/
	private static int vitesseVent;
	private static int MAX_VENT_VALUE = 10;
	private static int MIN_VENT_VALUE = 0;
	public static int MAX_SOLEIL_VALUE = 10;
	public static int MIN_SOLEIL_VALUE = 2;
	private static int ensoleillement;

	public static int getVitesseVent() {
		return vitesseVent;
	}

	public static void setVitesseVent(int vitesseVent) {
		Environement.vitesseVent = vitesseVent;
	}

	public static int getEnsoleillement() {
		return ensoleillement;
	}

	public static void setEnsoleillement(int ensoleillement) {
		Environement.ensoleillement = ensoleillement;
	}

	public static void setEnsoleillementAleatoire() {
		Random randomGenerator = new Random();
		int randomInt = randomGenerator.nextInt(MAX_SOLEIL_VALUE-MIN_SOLEIL_VALUE+1)+MIN_SOLEIL_VALUE;
		setEnsoleillement(randomInt);
	}

	public static void setNouveauVitesseVentAleatoire() {
		Random randomGenerator = new Random();
		int randomInt = randomGenerator.nextInt(MAX_VENT_VALUE-MIN_VENT_VALUE+1)+MIN_VENT_VALUE;
		setVitesseVent(randomInt);
		
	}
	
	

	
}
